<template>
  <div class="page-pin">
    <p><Icon type="md-pin" />当前位置：{{ name }}</p>
    <slot name="addBtn"></slot>
    <p v-show="showBack"><Button type="primary" @click="goBack">返回</Button></p>
  </div>
</template>

<script>
export default {
  name: 'systemNav',
  props: {
    name: {
      type: String,
      default: ''
    },
    showBack: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    goBack() {
      this.$router.go(-1)
    }
  }
}
</script>
